package com.guofen.dao;


import com.guofen.pojo.FoodOrder;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface FoodOrderMapper {

    List<FoodOrder> selectAll();

    FoodOrder selectByPrimaryKey(Integer id);

    FoodOrder selectByFoodNameAndOrderId(@Param("foodName")String foodName,
                                         @Param("orderId")Integer orderId);

    List<FoodOrder> selectByOrderId(Integer orderId);

    int deleteByPrimaryKey(Integer id);

    int insertSelective(FoodOrder foodOrder);

    int updateByPrimaryKeySelective(FoodOrder foodOrder);

    int deleteByOrderId(Integer orderId);
}
